package com.swh.hystrix.dashboard ;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableHystrixDashboard //表示启动对hystrix的监控,可有监控界面查看（http://localhost:port/hystrix）
@RestController
public class UserCloudHystrixDashboardApplication {
	
	@RequestMapping("/")
    public String home() {
        return "forward:/hystrix";
    }
	
	@RequestMapping("/isSuccess")
	public String isStartSuccess() {
		return "UserCloudHystrixDashboardApplication is start success!";
	}

	public static void main(String[] args) {
		SpringApplication.run(UserCloudHystrixDashboardApplication.class, args);
	}
}
